package com.example.design.a.factory_static;

import lombok.*;

/**
 * 汽车父类
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Car {
    /**
     * 车型名称
     */
    private String name;
    /**
     * 车辆颜色
     */
    private String color;

    public static Car getBenz() {
        return new BenzCar("C200L", "black");
    }

    public static Car getAudit() {
        return new AudiCar("AUDI_A8", "white");
    }
}
